package com.example.zdxk.service.impl;

import com.example.zdxk.entity.Setting;
import com.example.zdxk.mapper.primary.SettingMapper;
import com.example.zdxk.service.SettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 创建人：thj
 * 创建时间： 2018/6/25 14:09
 * 用途：
 */
@Service
public class SettingServiceImpl implements SettingService {


    @Autowired
    private SettingMapper settingMapper;

    @Override
    public List<Setting> getSettingByImei(String Imei) {
        return settingMapper.getSettingByImei(Imei);
    }

    @Override
    public List<Setting> getsettingList(String imei, int page, int limit){

        return settingMapper.getsettingList(imei,page,limit);
    }


    @Override
    public Setting getSettingBySid(Integer sid){
        return settingMapper.getSettingBySid(sid);
    }
    @Override
    public int add(Setting xixunSetting) {
        return settingMapper.add(xixunSetting);
    }

    @Override
    public int update(Setting xixunSetting) {
        return settingMapper.update(xixunSetting);
    }

    @Override
    public int updateAfterConfirm(Setting xixunSetting) {
        return settingMapper.updateAfterConfirm(xixunSetting);
    }

    @Override
    public int delete(Integer sid) {
        return settingMapper.delete(sid);
    }
    @Override
    public  Setting getSettingByTerm(String term){
        return settingMapper.getSettingByTerm(term);
    }


    }
